<template>
  <van-swipe :autoplay="3000" lazy-render>
    <van-swipe-item v-for="(item,index) in images" :key="index">
      <img :src="item.image"/>
    </van-swipe-item>
  </van-swipe>
</template>

<script setup lang="ts">
interface IImage {
  image: string,
  title: string,
  url: string
}

defineProps<{
  images: IImage[]
}>()
</script>

<style scoped lang="less">
img{
  width: 100%;
}

</style>
